package com.first.run.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.first.run.entity.SysPermission;
import com.first.run.entity.SysRole;
import com.first.run.mapper.SysPermissionMapper;
import com.first.run.service.SysPermissionService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, SysPermission> implements SysPermissionService {

    @Override
    public List<SysPermission> listPermissionByRoleId(Integer roleId) {
        return baseMapper.listPermissionByRoleId(roleId);
    }
}
